/*
Copyright 2025 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    font-size: 18px;
}

/* Force scrollbar to always be visible so that stuff in center doesn't shift
   when book reviews button is clicked*/
html {
    overflow-y: scroll;
}

.book-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.book-image-container {
    width: 300px;
    height: 450px;
    margin-right: 20px;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 14px;
}

.image-placeholder::after {
    content: 'Loading...';
}

.book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-info {
    max-width: 600px;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

h2 {
    font-size: 28px;
    margin-top: 30px;
    color: #444;
}

.review {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}

.button:hover {
    background-color: #0056b3;
}

#reviews {
    display: none;
    margin-top: 20px;
}

/* New styles for content wrapper and sections */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.reviews-section {
    flex: 1;
    margin-right: 20px;
}

.ai-summary-section {
    flex: 1;
}